 KISSY.ready(function(){
        var S=KISSY,DOM=S.DOM,Event=S.Event;
        var lastActive=null;
        
        Event.on(".nav-item","mouseleave",function(){
            DOM.css(DOM.get(".subNav",this),"display","none");
            DOM.removeClass(this,"hover")
        })
        Event.on(".subNav","mouseleave",function(){
            DOM.css(this,"display","none")
        })
        Event.on(".nav-item","mouseover",function(){
            DOM.css(DOM.get(".subNav",lastActive),"display","none")
            DOM.removeClass(lastActive,"hover")
            DOM.css(DOM.get(".subNav",this),"display","block");
            DOM.addClass(this,"hover")
            lastActive=this;
        })
    });